import Vue from 'vue'
import VueRouter from 'vue-router'

// 导入组件
import Reg from '@/views/Reg/reg.vue'
import Login from '@/views/Login/login.vue'



Vue.use(VueRouter)

// 配置路由规则
const routes = [
  {path:'/reg',name:'reg',component:Reg},
  {path:'/login',name:'login',component:Login},
]

const router = new VueRouter({
  routes
})

export default router
